package queue;

public class QueueExample {
    public static void main(String[] args) {
        linkQueue();
    }

    private static void linkQueue(){
        LinkQueue queue = new LinkQueue();
        System.out.println(queue.toString());
        queue.enQueue(1);
        System.out.println(queue.toString());
        queue.enQueue(2);
        System.out.println(queue.toString());
        queue.enQueue(3);
        System.out.println(queue.toString());
        queue.enQueue(4);
        System.out.println(queue.toString());
        queue.enQueue(5);
        System.out.println(queue.toString());
        System.out.println(queue.deQueue());
        System.out.println(queue.toString());
        System.out.println(queue.deQueue());
        System.out.println(queue.toString());
        System.out.println(queue.deQueue());
        System.out.println(queue.toString());
    }
}
